package
{
	import com.flesler.componentas.test.components.PositionDisplayComponent;
	import com.flesler.componentas.test.entity.TestEntity;
	
	import flash.display.Sprite;
	
	public class Main extends Sprite
	{
		private var entity:TestEntity;
		
		public function Main()
		{
			init();
		}
		
		private function init():void
		{
			entity = new TestEntity();
			
			tracePosition();
			
			entity.position.x = 10;
			entity.position.y = -10;
			
			tracePosition();
		}
		
		private function tracePosition():void
		{
			var display:PositionDisplayComponent = entity.getByName('display') as PositionDisplayComponent;
			display.tracePosition();
		}
	}
}